import service from '@/utils/request'

export const getGroupList = (params) => {
  return service({
    url: '/admin/group',
    method: 'get',
    params
  })
}

export const editGroup = (id, data) => {
  return service({
    url: `/admin/group/${id}`,
    method: 'put',
    data
  })
}

export const setting = (id) => {
  return service({
    url: `/robot/room/${id}`,
    method: 'get'
  })
}

export const say = (data) => {
  return service({
    url: '/robot/room/say',
    method: 'post',
    data
  })
}
